﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using LibService.DTO;
using LibService.DAO;

namespace LibService
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Service" in code, svc and config file together.
    public class Service : IService
    {

        public List<DichVuDTO> getDataDichVu()
        {
            return DichVuDAO.layDanhSachDichVu();
        }


        public List<DuLieuDTO> getDateByID(string maQuanHuyen)
        {
            return DuLieuDAO.getDataByID(maQuanHuyen);
        }



        public List<DuLieuDTO> getData()
        {
            return DuLieuDAO.layDanhSachDuLieu();
        }


        public List<PhuongDTO> layThongTinPhuong()
        {
            return PhuongDAO.layDanhSachPhuong();
        }

        public List<QuanHuyenDTO> layThongTinQuanHuyen()
        {
            return QuanHuyenDAO.layDanhSachQuanHuyen();
        }

        public List<TinhThanhDTO> layThongTinTinhThanh()
        {
            return TinhThanhDAO.layDanhSachTinhThanh();
        }


        public bool Insert(DuLieuDTO dl)
        {
            return DuLieuDAO.Insert(dl);
        }
    }
}
